package com.rightsidetech.activity.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class ActCouponCodeReq implements Serializable {
    @ApiModelProperty("优惠券编码")
    @NotEmpty(message = "code不能为空")
    @Pattern(regexp = "^[0-9a-zA-Z]{0,}$", message = "code不能输入特殊符号")
    private String code;

}
